const Router = require("koa-router");
const main = require("../../models");
const router = new Router();
const { ObjectId } = require("mongodb")
router.get("/detail", async ctx => {
    var {_id} = ctx.query;
    console.log(_id)
    var talbe = await main("top250");
    var result = await talbe.find({_id:ObjectId(_id)}).toArray();
    ctx.body = result
})
module.exports = router;